package com.topisv.tms.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 主分仓关系表
 */
@Entity
@Table(name = "sub_warehouse_rel")
public class SubWarehouseRel extends IdEntity implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String subWarehouseCode;//分仓编码
	private String subWarehouseName;//分仓名称
	private String mainWarehouseCode;//主仓编码
	private String mainWarehouseName;//主仓名称
	private int priority;//优先级
	private String createBy;//创建人
	private String modifyBy;//修改人
	private Date createTime;//创建时间
	private Date modifyTime;//修改时间
	public String getSubWarehouseCode() {
		return subWarehouseCode;
	}
	public void setSubWarehouseCode(String subWarehouseCode) {
		this.subWarehouseCode = subWarehouseCode;
	}
	public String getMainWarehouseCode() {
		return mainWarehouseCode;
	}
	public void setMainWarehouseCode(String mainWarehouseCode) {
		this.mainWarehouseCode = mainWarehouseCode;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public String getModifyBy() {
		return modifyBy;
	}
	public void setModifyBy(String modifyBy) {
		this.modifyBy = modifyBy;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	@Transient
	public String getSubWarehouseName() {
		return subWarehouseName;
	}
	public void setSubWarehouseName(String subWarehouseName) {
		this.subWarehouseName = subWarehouseName;
	}
	@Transient
	public String getMainWarehouseName() {
		return mainWarehouseName;
	}
	public void setMainWarehouseName(String mainWarehouseName) {
		this.mainWarehouseName = mainWarehouseName;
	}
	
	
}